<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Kelurahan_model extends FM_Model
{
	//list semua kecamatan yang ada sehingga controller tidak harus
	//meload model dari kecamatan
	public function getAllKecamatan(){
		$this->db->select('id,nama');
		$result =  $this->db->get('kecamatan')->result();
		$result_ar = array();
		foreach ($result as $row){
			//array_push($result_ar,array($row->id,$row->nama));
			$result_ar[$row->id] = $row->nama;
		}
		return $result_ar;
	}


}